table.RECORD_CONTENT_GET Function

Syntax

Record_List as C = Record_content_get(C content_expression[,C order[,C filter[,N fetchLevel]]])

Arguments

Record_List

A CR-LF delimited list of values, one per record.

content_expression

An expression that references one or more fields from the table.

order

Optional. Default = the current order.

filter

Optional. Default = the current filter.

fetchLevel

Numeric

Description

Retrieve record data in a cr-lf separated list.

Discussion

The <TBL>.RECORD_CONTENT_GET()retrieves a CR-LF delimited list of the fields specified by Expression. This method is faster than TABLE.EXTERNAL_RECORD_CONTENT_GET() when used with a table that is already open.

Example

dim tbl as P
tbl = table.open("customer") 
 tbl.query_create("", "bill_state_region = 'ny'") 
 ? tbl.record_content_get("lastname + bill_state_region") 
 = Feld NY 
 Dubi NY 
 Phillips NY 
 Carr NY 
 Barber NY 
 Bernstein NY 
 Baker NY 
 Harris NY 

 ? tbl.record_content_get("lastname + bill_state_region", "lastname", .t.") 
 = Abrams NE 
 Adams HI 
 Baker NY 
 Barber NY 
 Bernstein NY 
 Boschetti SC 
 Burtonski CA 
 Cario MA 
 Carr NY 
 Clifton VA 
 Copen MA 
 Dawson MA 
 Dodds AZ